// 叶子
import 'package:flame/components.dart';

import '../../../component/ScaleSpriteComponent.dart';
import '../../../config/AssetsName.dart';

class _SelectorScreenLeaves extends ScaleSpriteComponent {
  _SelectorScreenLeaves()
    : super(300, Vector2.zero(), AssetsName.spriteSelectorScreenLeavesBg);
}

class _SelectorScreenLeaf1 extends ScaleSpriteComponent {
  _SelectorScreenLeaf1()
    : super(40, Vector2(350, 40), AssetsName.spriteSelectorScreenLeaf1);
}

class _SelectorScreenLeaf3 extends ScaleSpriteComponent {
  _SelectorScreenLeaf3()
    : super(50, Vector2(315, 23), AssetsName.spriteSelectorScreenLeaf3);
}

class _SelectorScreenLeaf4 extends ScaleSpriteComponent {
  _SelectorScreenLeaf4()
    : super(38, Vector2(280, 23), AssetsName.spriteSelectorScreenLeaf4);
}

class _SelectorScreenLeaf5 extends ScaleSpriteComponent {
  _SelectorScreenLeaf5()
    : super(22, Vector2(310, 45), AssetsName.spriteSelectorScreenLeaf5);
}

class SelectorScreenLeavesComponent extends PositionComponent {
  @override
  Future<void> onLoad() async {
    position = Vector2(-480, 290);
    add(_SelectorScreenLeaves());
    add(_SelectorScreenLeaf4());
    add(_SelectorScreenLeaf3());
    add(_SelectorScreenLeaf5());
    add(_SelectorScreenLeaf1());
  }
}
